<html>

<head>

<link rel="stylesheet" type="text/css" href="${def:context}/default.css" />

<!--biblioteca generica JS/Dinamica-->
<script type="text/javascript" src="${def:context}/action/script">
	</script>
<script language="JavaScript" type="text/javascript" src="${def:context}/js/getResponse.js"></script>
<title>选择等级</title>

</head>

<body>

<!--banner-->
<div class="banner" style="height: 15px; margin-bottom: 0px; font-weight: normal">
	<div style="float: left">选择等级</div>
	<div style="float: right">
		<img src="${def:context}/images/close.gif" class="button" onclick="parent.pickClose()" title="关闭">
	</div>
</div>
<center>
<div id="form">
<form name="form2" onsubmit="return search()" style="margin-top:0px;margin-bottom:0px;">
<input name="house_type" type="hidden" value="0">
</form>
</div>

<div id="status" class="alert" style="display: none; color: gray; width: 60%; font-weight: normal; font-family: Arial; margin-top: 10px">
	<img src="${def:context}/images/progress.gif"> 请等待
</div>

<!--panel de respuesta AJAX-->
<div id="response" style="display: none; width: 100%; margin-top: 7px">
</div>

</center>

</body>

<!--codigo de soporte del template-->
<script type="text/javascript">
		var currstyle = "";

		function search()
		{
			return ajaxCall(	httpMethod="POST", 
								uri="${def:actionroot}/search", 
								divResponse="response", 
								divProgress="status", 
								formName="form2", 
								afterResponseFn=null, 
								onErrorFn=null);
		
		}

		function viewPage()
		{
			var url = "${def:actionroot}/view";
			gotoPage(url);
		}

		//resaltar row del grid
		function rowOn(obj) {
			currStyle = obj.className;
			obj.className="hilite";
		}
		
		//restaurar color normal del row del grid
		function rowOff(obj) {
			obj.className=currStyle
		}
		
		function selectItem(id) {
			var zhihuan_price = document.getElementById("p"+id).innerHTML;
			var house_level = document.getElementById("h"+id).innerHTML;
			parent.pickSelect(house_level,zhihuan_price);
			parent.pickClose();
		}
		
		window.onload = function(){
			if(parent.pickOtherControl){
				if(parent.pickOtherControl.length >= 1){
					document.form2.house_type.value = parent.pickOtherControl[0];
					search();
				}
			}
		}
</script>


</html>
